/*
 * Configuracoes.java
 *
 * Created on 22 de Maio de 2007, 00:38
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.jerm.Interface;
import java.awt.BorderLayout;
import javax.swing.*;

import org.jerm.Interface.JGraph_Algebra.Diagrama_JGraph;
import org.jerm.Interface.JGraph_Algebra.Diagrama_ToolBar;


/**
 *
 * @author Leonardo
 */
public class Algebra extends JPanel
{
    
    private Diagrama_JGraph Diagrama_JGraph;
    private Diagrama_ToolBar Diagrama_ToolBar;
    protected Principal Principal;
    
    /** Creates a new instance of Configuracoes */
    public Algebra (Principal Principal)
    {
        super();
        this.Principal=Principal;
        this.Diagrama_JGraph = new Diagrama_JGraph();
        this.Diagrama_ToolBar = new Diagrama_ToolBar(Diagrama_JGraph, Principal);
        this.Diagrama_JGraph.setToolBar(this.Diagrama_ToolBar);
        
        this.setLayout(new BorderLayout());
        this.add(Diagrama_ToolBar, BorderLayout.PAGE_START);
        this.add(Diagrama_JGraph, BorderLayout.CENTER);
    }
    
    public String getToolTip(){
        return "<html>Blue Wavy Line border art crew:<br>&nbsp;&nbsp;&nbsp;Bill Pauley<br>" +
                "&nbsp;&nbsp;&nbsp;Cris St. Aubyn<br>" +
                "&nbsp;&nbsp;&nbsp;Ben Wronsky<br>" +
                "&nbsp;&nbsp;&nbsp;Nathan Walrath<br>" +
                "&nbsp;&nbsp;&nbsp;Tommy Adams, special consultant</html>";
    }
}
